package com.icoding.fw.entities;

import javax.persistence.AttributeOverride;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.Table;

@Entity
@Table(name = Article.TABLE)
@Inheritance(strategy = InheritanceType.JOINED)
@AttributeOverride(name = "id", column = @Column(name = Article.COLUMN_PK))
public class Article extends BaseDom {

	public static final String TABLE = "article";
	public static final String COLUMN_PK = "article_id";

	@Column(name = "content")
	private String content;

	@Column(name = "subject")
	private String subject;

	@Column(name = "description")
	private String description;

	@Column(name = "seo_url")
	private String seoUrl;

	@Column(name = "real_url")
	private String realUrl;

	@Column(name = "seo_keyword")
	private String seoKeyword;

	@Column(name = "seo_description")
	private String seoDescription;

	@Column(name = "view_time")
	private Integer viewTime;

	@Column(name = "media")
	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getSubject() {
		return subject;
	}

	public void setSubject(String subject) {
		this.subject = subject;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getSeoUrl() {
		return seoUrl;
	}

	public void setSeoUrl(String seoUrl) {
		this.seoUrl = seoUrl;
	}

	public String getSeoKeyword() {
		return seoKeyword;
	}

	public void setSeoKeyword(String seoKeyword) {
		this.seoKeyword = seoKeyword;
	}

	public String getSeoDescription() {
		return seoDescription;
	}

	public void setSeoDescription(String seoDescription) {
		this.seoDescription = seoDescription;
	}

	public Integer getViewTime() {
		return viewTime;
	}

	public void setViewTime(Integer viewTime) {
		this.viewTime = viewTime;
	}

	public String getRealUrl() {
		return realUrl;
	}

	public void setRealUrl(String realUrl) {
		this.realUrl = realUrl;
	}

}
